import { Column, Entity, PrimaryGeneratedColumn, BaseEntity, ManyToOne, JoinColumn } from 'typeorm';
import { Menu } from './menu.entity';
@Entity('menu_action')
export class Action extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;
    @Column('int')
    menuId: number;
    @Column()
    actionDom: string;
    @Column()
    actionName: string;
    @Column('tinyint')
    buttonType: number;
    @Column()
    buttonIcon: string;
    @Column()
    buttonClass: string;
    @Column('tinyint')
    buttonPosition: number;
    @Column()
    parentDom: string;
    @Column('smallint')
    sort: number;
    @Column('tinyint')
    status: number;
    @ManyToOne(() => Menu, menu => menu.action)
    menu: Menu;
}
